package edu.dlnu.newbootdemo.controller;

import edu.dlnu.newbootdemo.pojo.Classes;
import edu.dlnu.newbootdemo.service.IClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author :JinFeng
 * @description :
 * @create :2023/6/29
 */
@RestController
public class ClassesController {
    @Autowired
    private IClassesService service;

    @GetMapping("/classes")
    public List<Classes> queryAllClasses(){
        return service.getAllClasses();
    };
}
